package top.zhangjianyong.blog.params.comment;

import jakarta.validation.constraints.NotNull;

/**
 * @author zhangjianyong
 * @since 2024/8/29 下午8:39
 */
public record CommentPagePortalParam(
    @NotNull(message = "博客ID不能为空") Long blogId, Integer pageNum, Integer pageSize) {
  public CommentPagePortalParam {
    if (pageNum == null) pageNum = 1;
    if (pageSize == null) pageSize = 10;
  }
}
